import request from '@/api/request'

//数据列表
export function index(params) {
	return request({ url: '/app/Warehouse/index',method: 'post',data: params})
}



//修改排序开关
export function updateExt(params) {
	return request({ url: '/app/Warehouse/updateExt',method: 'post',data: params})
}



//添加
export function add(params) {
	return request({ url: '/app/Warehouse/add',method: 'post',data: params})
}



//修改
export function update(params) {
	return request({ url: '/app/Warehouse/update',method: 'post',data: params})
}

export function getUpdateInfo(params) {
	return request({ url: '/app/Warehouse/getUpdateInfo',method: 'post',data: params})
}



//删除
export function del(params) {
	return request({ url: '/app/Warehouse/delete',method: 'post',data: params})
}



//查看详情
export function detail(params) {
	return request({ url: '/app/Warehouse/detail',method: 'post',data: params})
}



//判断仓库是否启用仓位
export function checkStock(params) {
	return request({ url: '/app/Warehouse/check_stock',method: 'post',data: params})
}


//根据仓库获取仓位
export function getLocation(params) {
	return request({ url: '/app/Warehouse/get_location',method: 'post',data: params})
}


//根据仓库获取仓位
export function getStockList(params) {
	return request({ url: '/app/Warehouse/get_stock_list',method: 'post',data: params})
}


//查询部门信息
export function getHouseList(params) {
	return request({ url: '/app/Warehouse/get_house_list',method: 'post',data: params})
}